package String.CountNumber;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/27 8:27
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("请输入一字符串：");
        Scanner scanner=new Scanner(System.in);
        String s1=scanner.nextLine();
        int count = 0;
        int count1=0;
        int count2=0;
        for (int i = 0; i <s1.length(); i++) {
            char c=s1.charAt(i);
            if (c>='0'&&c<='9'){
                count++;
            }else if (c>='a'&&c<='z'){
                count1++;
            }else if (c>='A'&&c<='Z'){
                count2++;
            }
        }
        System.out.println(count);
        System.out.println(count1);
        System.out.println(count2);
    }
}
